import { coverGlobals } from '@swda/utils'
import { useMapSnap, useSwdaSaveDataStorage } from './handleData.js'
import { Scene_Save, Scene_Load } from './fileScene.js'
import './fileCoverConfirm.js'
import './globalEnemyBook.js'   //老饕：全局神魔录
import'./oldFileUpdate.js'      //老套：更新旧存档以适应新版本

function useSwdaSaveScene() {
    coverGlobals([
        ['Scene_Save', Scene_Save],
        ['Scene_Load', Scene_Load],
    ])
}

/**
 * 启用该插件功能
 */
function setup() {
    useMapSnap()
    useSwdaSaveDataStorage()
    useSwdaSaveScene()
}

setup();